const std = @import("std");
const rl = @import("raylib");

const Allocator = std.mem.Allocator;
const Self = @This();
const allocPrintZ = std.fmt.allocPrintZ;

allocator: Allocator,

pub fn init(allocator: Allocator) Self {
    return .{
        .allocator = allocator,
    };
}

pub fn debug(self: Self, comptime fmt: []const u8, comptime args: anytype) !void {
    const text = try allocPrintZ(self.allocator, fmt, args);
    rl.traceLog(.debug, text, .{});
}
